From 88357340bed3da3573c3e538577a5956e3eb6eaa Mon Sep 17 00:00:00 2001 From: oliskoli Date: Sat, 22 Oct 2005 21:32:37 +0000 Subject: [PATCH] Uninitialized size before xcalloc fixed git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@1486 f51c46e8-681c-474f-0cfe-069cfd0219fb --- gpsbabel/coto.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gpsbabel/coto.c b/gpsbabel/coto.c index d3d363b08..1869aa2ed 100644 --- a/gpsbabel/coto.c +++ b/gpsbabel/coto.c @@ -361,6 +361,8 @@ coto_wpt_write(const waypoint *wpt) { notes = xstrdup(wpt->notes); } + + size = sizeof(*rec); if (notes != NULL) size += strlen(notes); rec = xcalloc(size, 1); -- 2.30.2